<template>
    <div>
      <h2>{{ title }}</h2>
      <p>{{ message }}</p>
      <button @click="confirm">确定</button>
    </div>
  </template>
  
  <script>
  export default {
    props: ['title', 'message'],
    methods: {
      confirm() {
        alert('确认！')
      }
    }
  }
  </script>
  